-
Notifications
You must be signed in to change notification settings - Fork 110
feat(dedicated): add migration vcfaas banner #20062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
e40e672 to
267f530
Compare
...icated-cloud/customer-vcfaas-migration-banner/customer-vcfaas-migration-banner.controller.js
Outdated
Show resolved
Hide resolved
...icated-cloud/customer-vcfaas-migration-banner/customer-vcfaas-migration-banner.controller.js
Outdated
Show resolved
Hide resolved
...nents/dedicated-cloud/customer-vcfaas-migration-banner/customer-vcfaas-migration-banner.html
Outdated
Show resolved
Hide resolved
...nents/dedicated-cloud/customer-vcfaas-migration-banner/customer-vcfaas-migration-banner.html
Outdated
Show resolved
Hide resolved
...components/dedicated-cloud/customer-vcfaas-migration-banner/translations/Messages_fr_FR.json
Show resolved
Hide resolved
267f530 to
7c88a34
Compare
ref: #MANAGER-19946 Signed-off-by: ahmed sefiani <[email protected]>
7c88a34 to
5a0fdb7
Compare
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "dedicated_cloud_dashboard_customer_vcfaas_migration_banner": "Nouvelle offre Public VCF as-a-Service - Tarifs ultra compétitifs et migration gratuite - Découvrir <a href=\"{{ url }}\" target=\"_blank\"> l'offre </a> et Testez votre éligibilité", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange mix of tenses
Either Découvrir ... et tester ... or Découvrez ... et testez ...
| "dedicated_cloud_dashboard_customer_vcfaas_migration_banner": "Nouvelle offre Public VCF as-a-Service - Tarifs ultra compétitifs et migration gratuite - Découvrir <a href=\"{{ url }}\" target=\"_blank\"> l'offre </a> et Testez votre éligibilité", | |
| "dedicated_cloud_dashboard_customer_vcfaas_migration_banner": "Nouvelle offre Public VCF as-a-Service - Tarifs ultra compétitifs et migration gratuite - Découvrir <a href=\"{{ url }}\" target=\"_blank\">l'offre</a> et testez votre éligibilité", |
| this.pending = false; | ||
| this.displayMigrationBanner = false; | ||
| } | ||
|
|
||
| $onInit() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| this.pending = false; | |
| this.displayMigrationBanner = false; | |
| } | |
| $onInit() { | |
| } | |
| $onInit() { | |
| this.pending = false; | |
| this.displayMigrationBanner = false; |
| return this.OvhHttp.post( | ||
| `/dedicatedCloud/{serviceName}/requestContactForVmwareCloudDirectorMigration`, | ||
| { | ||
| rootPath: 'apiv6', | ||
| urlParams: { | ||
| serviceName, | ||
| }, | ||
| }, | ||
| ); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OvhHttp is deprecated, use $http instead
| customerVcfaasMigrationBannerAvailability: /* @ngInject */ ( | ||
| ovhFeatureFlipping, | ||
| ) => | ||
| ovhFeatureFlipping | ||
| .checkFeatureAvailability( | ||
| 'dedicated-cloud:customerVcfaasMigrationBanner', | ||
| ) | ||
| .then((featureAvailability) => | ||
| featureAvailability.isFeatureAvailable( | ||
| 'dedicated-cloud:customerVcfaasMigrationBanner', | ||
| ), | ||
| ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There a lot of featureAvailability calls inside the resolve section. Making one call for each feature is not very performant.
It could be optimized to make only one call
features: /* @ngInject */ (ovhFeatureFlipping) => ovhFeatureFlipping
.checkFeatureAvailability('feature1', 'feature2',..., 'dedicated-cloud:customerSurveyBanner', 'dedicated-cloud:customerVcfaasMigrationBanner'),
customerVcfaasMigrationBannerAvailability: /* @ngInject */ (
features,
) => features.isFeatureAvailable(
'dedicated-cloud:customerVcfaasMigrationBanner',
),
ref: #MANAGER-19946